/*
 * Copyright (c) 2021 os-parent Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ones.sdp.kit.log.model.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 接口日志
 * </p>
 *
 * @author Clark
 * @version 2024-09-23
 */
@Getter
@Setter
@ToString
public class OnesLogDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * 日志标题
     */
    private String title;

    /**
     * 日志类型（0:正常、9:错误）
     */
    private String type;

    /**
     * 操作方式
     */
    private String method;

    /**
     * 请求URI
     */
    private String requestUri;

    /**
     * 操作IP地址
     */
    private String remoteAddr;

    /**
     * 用户代理
     */
    private String userAgent;

    /**
     * 状态
     */
    private String status;

    /**
     * 请求参数
     */
    private String reqContent;

    /**
     * 应答参数
     */
    private String resContent;

    /**
     * 执行时间:毫秒
     */
    private long time;

    /**
     * 异常信息
     */
    private String exception;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
